package com.hjxr.quota.define.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 指标值表
 * </p>
 *
 * @author sun
 * @since 2020-10-16
 */
@Data
@TableName("QUOTA_VALUE")
@ApiModel(value="QuotaValue对象", description="指标值表")
@KeySequence(value = "seq_quota_value", clazz = Integer.class)

public class QuotaValue implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "指标值ID，自增主键")
    @TableField("ID")
    private Integer id;

    @ApiModelProperty(value = "预指标ID")
    @TableField("QUOTA_ID")
    private Integer quotaId;

    @ApiModelProperty(value = "具体维度ID集合( | 线隔开)")
    @TableField("DIMENSIONS")
    private String dimensions;

    @ApiModelProperty(value = "度量值")
    @TableField("MEASURE")
    private String measure;

    @ApiModelProperty(value = "指标值")
    @TableField("VALUE")
    private Float value;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_DATE")
    private Date updateDate;

    @ApiModelProperty(value = "指标代码")
    @TableField("CODE")
    private String code;

    @ApiModelProperty(value = "平均数")
    @TableField("AV")
    private Float av;

    @ApiModelProperty(value = "最大值")
    @TableField("MX")
    private Float mx;

    @ApiModelProperty(value = "最小值")
    @TableField("MN")
    private Float mn;

    @ApiModelProperty(value = "求和")
    @TableField("SM")
    private Float sm;

    @ApiModelProperty(value = "计数")
    @TableField("CT")
    private Integer ct;

    @TableField(exist = false)
    private String dimensionNames;

}
